package com.hkts.naturalgas.weight.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hkts.naturalgas.utils.Result;
import com.hkts.naturalgas.weight.entity.WeightTables;

import java.text.ParseException;
import java.util.List;

/**
 * <p>
 * 用于维护称重计量的表 服务类
 * </p>
 *
 * @author yck
 * @since 2022-06-13
 */
public interface IWeightTablesService extends IService<WeightTables> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param weightTables
     * @return
     */
    IPage<WeightTables> selectPage(Page<WeightTables> page, WeightTables weightTables);

    List<WeightTables> selectList(WeightTables weightTables);
    //磅秤接口
    Result getWeightList(int id, String date) throws ParseException;
    //公共数据处理逻辑
    Result getDataList(int id, String date) throws ParseException;
}